<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:p="http://primefaces.org/ui" xmlns:a4j="http://richfaces.org/a4j"
	xmlns:c="http://java.sun.com/jsp/jstl/core">

	<p:growl id="msgs" showDetail="true" />

	<p:panel header="Kayıp-Çalıntı Bildirimi" style="margin-bottom:10px;">
		<h:messages errorClass="error" 
				style="color: red; font-style: italic; text-decoration: blink" />
		<h:panelGrid columns="2" cellpadding="5">
					
			<h:outputLabel value="Aygıt marka-model : " />
			<h:outputText value="#{AygitihbarBean.selectedAygitihbar.musteriaygitlari.aygit.marka}
			 - #{AygitihbarBean.selectedAygitihbar.musteriaygitlari.aygit.model}" />
						
			<h:outputLabel value="Aygıt Seri No : " />
			<h:outputText value="#{AygitihbarBean.selectedAygitihbar.musteriaygitlari.aygitSeriNo}" />
							
			<h:outputLabel value="İhbar Tarihi : " />
			<h:outputText value="#{AygitihbarBean.selectedAygitihbar.ihbarTarihi}" />					
			
			<h:outputLabel value="Kayıp/Çalıntı Tarihi : " />
			<p:calendar value="#{AygitihbarBean.selectedAygitihbar.kayipCalintiTarihi}" id="popupCal2" 
			 converter="DateConverter" pattern="dd/MM/yyyy" maxdate="#{AygitihbarBean.today}"
				style="height: 150px; width: 140px" showWeeksBar="false" readOnlyInputText="true"/>
				
			<h:outputLabel value="İhbar Türü : " />
			<p:selectOneMenu value="#{AygitihbarBean.selectedAygitihbar.ihbarTuru}">  
            	<f:selectItem itemLabel="KAYIP" itemValue="KAYIP" />  
            	<f:selectItem itemLabel="ÇALINTI" itemValue="CALINTI" />  
	        </p:selectOneMenu>
	        
	        <h:outputLabel value="İhbar Açıklama : " />
			<h:inputTextarea value="#{AygitihbarBean.selectedAygitihbar.aciklamalar}" />
		</h:panelGrid>
		<p:separator />
		<p:commandButton value="Submit" update=":musteriUrunForm"
				action="#{AygitihbarBean.SaveOrUpdate}" id="btnSubmit" />
	</p:panel>
</ui:composition>